////////////////////////////////////////////////////////////////////////////////
//
//  FLYING KIWI BV
//  Copyright 2010 Flying Kiwi BV
//  All Rights Reserved.
//
//  NOTICE: Flying Kiwi permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
package plantool.core {
	import kiwi.system.Base;
	
	import plantool.api.DateApi;
	import plantool.modules.menu.MenuApi;
	import plantool.modules.orders.OrderApi;
	import plantool.modules.users.UserApi;
	import plantool.modules.workplaces.WorkplaceApi;
	import plantool.data.DatabaseManager;
	import plantool.settings.Settings;

	//--------------------------------------------------------------------------
	//  Imports
	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	//  [Metadata (Events, Style, Effects etc)]
	//--------------------------------------------------------------------------
	
	//--------------------------------------------------------------------------
	//  Class declaration
	//--------------------------------------------------------------------------
	public class CoreObject {
		//--------------------------------------------------------------------------
		//Class constants
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//Class variables
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//Class properties
		//--------------------------------------------------------------------------
		protected function get databaseManager():DatabaseManager {
			return DatabaseManager.getInstance();
		}
		protected function get dateApi():DateApi {
			return DateApi.getInstance();
		}
		protected function get menuApi():MenuApi {
			return MenuApi.getInstance();
		}
		protected function get orderApi():OrderApi {
			return OrderApi.getInstance();
		}
		protected function get settings():Settings {
			return Settings.getInstance();
		}
		protected function get statusManager():StatusManager {
			return StatusManager.getInstance();
		}
		protected function get userApi():UserApi {
			return UserApi.getInstance();
		}
		protected function get workplaceApi():WorkplaceApi {
			return WorkplaceApi.getInstance();
		}
		
		//--------------------------------------------------------------------------
		//Constructor and Destructor
		//--------------------------------------------------------------------------
		public function CoreObject() {
		}
		
		//--------------------------------------------------------------------------
		//Class methods
		//--------------------------------------------------------------------------
	}
}